
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path_index = request.getContextPath();
    String basePath_index = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path_index + "/";
%>

<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>读者</title>
    <link href="<%=path_index%>/css/app.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="<%=path_index%>/css/default.css">
    <link href="http://fonts.useso.com/css?family=Open+Sans:400,700,600" rel="stylesheet" type="text/css">
    <link href="http://libs.useso.com/js/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<div id="contentWrapper">
    <div id="contentTop">
        <h1>图书借阅管理系统——读者</h1>
        <s:if test="#session.loginState == 1">
            <a href="<%=path_index%>/login/UserAction_logout.action">注销</a>

            <s:if test="#session.isAdmin == false">
                <span style="color: #fcfcfc;float: right;height: 36px;line-height:36px;font-size: 18px">
                    欢迎您！读者：<s:property value="#session.loginName"/></span>
            </s:if>
            <s:else>
                <span style="color: #fcfcfc;float: right;height: 36px;line-height:36px;font-size: 18px">
                欢迎您！管理员：<s:property value="#session.loginName"/></span>
            </s:else>
        </s:if>
        <s:else>
            <a href="<%=path_index%>/login/login.jsp">登录</a>
        </s:else>
    </div>
    <div id="contentLeft">
        <ul id="leftNavigation">
            <li class="clickable">
                <a href="#" onclick="loadXMLDoc('<%=path_index%>/reader/ReaderAction_preSearch.action')">
                    <i class="fa fa-search leftNavIcon"></i> 图书搜索</a>
            </li>

            <li>
                <a href="#"><i class="fa fa-angle-right leftNavIcon" ></i> 借阅信息</a>
                <ul>
                    <li>
                        <a href="#" onclick="loadXMLDoc('<%=path_index%>/reader/ReaderAction_queryHistoryBorrow.action?readerid=<s:property value="#session.loginName"/>')">
                            历史借阅</a>
                    </li>
                    <li>
                        <a href="#" onclick="loadXMLDoc('<%=path_index%>/reader/ReaderAction_queryNoReturnBorrow.action?readerid=<s:property value="#session.loginName"/>')">
                            未还借阅</a>
                    </li>
                </ul>
            </li>

            <li class="clickable">
                <a href="#" onclick="loadXMLDoc('<%=path_index%>/reader/ReaderAction_queryReader.action')">
                    <i class="fa fa-user leftNavIcon"></i> 读者信息</a>
            </li>

            <li class="clickable">
                <a href="#" onclick="loadXMLDoc('<%=path_index%>/copyright.jsp')"><i class="fa fa-copyright leftNavIcon"></i> 关于我们</a>
            </li>
        </ul>
    </div>

    <div id="contentRight">
        <iframe id="content" style="width: 100%;height: 100%;text-align: center"></iframe>
    </div>
</div>

<script src="<%=path_index%>/js/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="<%=path_index%>/js/jquery.ssd-vertical-navigation.min.js"></script>
<script src="<%=path_index%>/js/app.js"></script>
<script src="<%=path_index%>/js/ajax.js"></script>
</body>
</html>

